package org.dromara.exam.domain.bo;

import org.dromara.exam.domain.ExamBookWordRelation;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 单词本关联单词业务对象 exam_book_word_relation
 *
 * @author Lion Li
 * @date 2025-09-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ExamBookWordRelation.class, reverseConvertGenerate = false)
public class ExamBookWordRelationBo extends BaseEntity {

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long relationId;

    /**
     * 单词本ID
     */
    @NotNull(message = "单词本ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long bookId;

    /**
     * 单词ID
     */
    @NotNull(message = "单词ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long wordId;


}
